package cn.z2huo.knowledge.basic.string.textblock;

/**
 * <p>
 *
 * @author z2huo
 */
class Test {

    public static void main(String[] args) {
        String string = """
                {
                    "name": "zyz",
                    "age": 12,
                    "class": 42
                }""";
        // 结束分隔符 """ 在内容的最后一行，则最后一行没有行终止符
        System.out.print(string);

        string = """
                {
                    "name": "zyz",
                    "age": 12,
                    "class": 42
                }
                """;
        System.out.print(string);

        string = """
                this is a XXX \
                hahaha
                """;
        System.out.println(string);

        string = """
                green\s
                red  \s
                gray \s
                """;
        System.out.println(string);
    }

}
